package com.service;

import com.pojo.Result;
import java.util.List;

public interface NoteProductsService {
    Result<Void> addProductToNote(Integer noteId, Integer productId);
    Result<Void> removeProductFromNote(Integer noteId, Integer productId);
    Result<Void> removeAllProductsFromNote(Integer noteId);
    Result<Void> removeProductFromAllNotes(Integer productId);
    Result<List<Integer>> getProductsByNoteId(Integer noteId);
    Result<List<Integer>> getNotesByProductId(Integer productId);
    Result<Boolean> isProductAttachedToNote(Integer noteId, Integer productId);
}